import request from '@/utils/request'

// 查询招生计划列表
export function listStudentEnroll(query) {
  return request({
    url: '/student/studentEnroll/list',
    method: 'get',
    params: query
  })
}

// 查询招生计划详细
export function getStudentEnroll(id) {
  return request({
    url: '/student/studentEnroll/' + id,
    method: 'get'
  })
}

// 新增招生计划
export function addStudentEnroll(data) {
  return request({
    url: '/student/studentEnroll',
    method: 'post',
    data: data
  })
}

// 修改招生计划
export function updateStudentEnroll(data) {
  return request({
    url: '/student/studentEnroll',
    method: 'put',
    data: data
  })
}

// 删除招生计划
export function delStudentEnroll(id) {
  return request({
    url: '/student/studentEnroll/' + id,
    method: 'delete'
  })
}

// 导出招生计划
export function exportStudentEnroll(query) {
  return request({
    url: '/student/studentEnroll/export',
    method: 'get',
    params: query
  })
}

// 下载导入模板
export function importTemplate() {
  return request({
    url: '/student/studentEnroll/importTemplate',
    method: 'get'
  })
}
